import request from '@/utils/request'

// 查询列表tree
export function listDictData(query) {
    return request({
        url: '/sys/dictdata/list',
        method: 'get',
        params: query
    })
}

export function listLinux(query) {
    return request({
        url: '/sys/dictdata/linux_list',
        method: 'get',
        params: query
    })
}

//日志
export function addLog(data) {
    return request({
        url: '/sys/dictdata/addlog',
        method: 'post',
        data: data
    })
}

// 查询主题
export function getTheme(query) {
    return request({
        url: '/sys/dictdata/gettheme',
        method: 'get',
        params: query
    })
}
//主题保存
export function addTheme(data) {
    return request({
        url: '/sys/dictdata/addtheme',
        method: 'post',
        data: data
    })
}

// 查询主题
export function getVersion(query) {
    return request({
        url: '/sys/dictdata/getversion',
        method: 'get',
        params: query
    })
}